import org.omg.CORBA.PUBLIC_MEMBER;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
class FooException extends Exception{
    public FooException() {
    }

    public FooException(String message) {
        super(message);
    }

    public FooException(String message, Throwable cause) {
        super(message, cause);
    }

    public FooException(Throwable cause) {
        super(cause);
    }

    public FooException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
public class Main {
    public static void main(String[] args)throws FooException{
        try{
            //抛自定义异常
            throw new FooException("没错啦");
            //抛系统异常
            //throw new Exception();
        }
        catch (FooException f)
        {
            throw new FooException(f);
        }

    }
}